<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0049)http://localhost:8080/HouseRent/page/register.jsp -->
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE>郑州租房 - 用户注册</TITLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<LINK rel=stylesheet type=text/css href="${basePath }css/style.css">
<script type="text/javascript" language="javascript"
	src="${basePath }scripts/function.js"></script>
<script type="text/javascript" language="javascript"
	src="${basePath }scripts/jquery-3.1.1.js"></script>
<META name=GENERATOR content="MSHTML 8.00.7601.17514">
<script type="text/javascript">
	var name = $("INPUT[name='name']").eq(0).val();
	function checkname(){
		alert("aa");
		if (name == "") {
			$("INPUT[name='name']").after("<span style='color:red;font-size:14px;'>用户名不能为空！</span>")
			return ;
		}
		$.ajax({
			url:"RegistServlet",
			type:"post",
			data:{"username":name},
			cache:false,
			dataType:"text",
			success:function(data) {
				$("INPUT[name='name']").after("<span style='color:red;font-size:14px;'>" + data + "</span>");
			}
		})
	}
		var pwd = $("INPUT[name='password']").eq(0).val();
		var repwd = $("INPUT[name='repassword']").eq(0).val();
	$("INPUT[name='repassword']").blur(function(){
		if (repwd == "") {
			$("INPUT[name='repassword']").after("<span style='color:red;font-size:14px;'>请再次输入密码！</span>")
			return ;
		}
		$.ajax({
			url:"RegistServlet",
			type:"post",
			data:{"repassword":repwd},
			cache:false,
			dataType:"text",
			success:function(data) {
				$("INPUT[name='repassword']").after("<span style='color:red;font-size:14px;'>" + data + "</span>");
			}
		})
	})
	function check() {
		alert("aaaaaa");
		return false;
	}
</script>

</HEAD>
<BODY>
	<DIV id=header class=wrap>
		<DIV id=logo>
			<IMG src="${basePath }images/logo.gif">
		</DIV>
	</DIV>
	<DIV id=regLogin class=wrap>
		<DIV class=dialog>
			<DL class=clearfix>
				<DT>新用户注册</DT>
				<DD class=past>填写个人信息</DD>
			</DL>
			<DIV class=box>
				<FORM action=RegistServlet method="post" onsubmit="return check()">
					<DIV class=infos>
						<TABLE class=field>
							<TBODY>
								<TR>
									<TD class=field>用 户 名：</TD>
									<TD><INPUT class=text type=text name=name id=name
										onblur="checkname()"></TD>
								</TR>
								<TR>
									<TD class=field>密 码：</TD>
									<TD><INPUT class=text type=password name=password></TD>
								</TR>
								<TR>
									<TD class=field>确认密码：</TD>
									<TD><INPUT class=text type=password name=repassword>
									</TD>
								</TR>
								<TR>
									<TD class=field>电 话：</TD>
									<TD><INPUT class=text type=text name=telephone></TD>
								</TR>
								<TR>
									<TD class=field>用户姓名：</TD>
									<TD><INPUT class=text type=text name=username></TD>
								</TR>
							</TBODY>
						</TABLE>
						<DIV class=buttons>
							<INPUT value=立即注册 type=submit>
						</DIV>
					</DIV>
				</FORM>
			</DIV>
		</DIV>
	</DIV>
	<DIV id=footer class=wrap>
		<DL>
			<DT>郑州租房 © 2010 云和学院 京ICP证1000001号</DT>
			<DD>关于我们 · 联系方式 · 意见反馈 · 帮助中心</DD>
		</DL>
	</DIV>
</BODY>
</HTML>
